home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / stepp000.swf / scripts / DefineSprite_2686 / frame_10 / DoAction.as
Encoding:
Text File  |  2010-04-12  |  462 b   |  20 lines

  1. set("/Variables:Vie",eval("/Variables:Vie") - 20);
  2. if(eval("/Variables:Vie") < 1)
  3. {
  4.    set("/Variables:Vie",0);
  5.    tellTarget("_root")
  6.    {
  7.       gotoAndStop("MegMeurt");
  8.       play();
  9.    }
  10. }
  11. if(eval("/Variables:MegCri") == false)
  12. {
  13.    tellTarget("_root.Sons")
  14.    {
  15.       gotoAndStop("MegCri");
  16.       play();
  17.    }
  18. }
  19. setProperty("/Inventaire/BarreVie2/BarreVie3/Gage2", _width, eval("/Variables:GageLargeur") * (eval("/Variables:Vie") / 100));
  20.